// src/stores/userStore.js
import { defineStore } from 'pinia';
 
export const useUserStore = defineStore('user', {
  state: () => ({
    username: '',
    age: 0,
  }),
  actions: {
    setUsername(username) {
      this.username = username;
    },
    setAge(age) {
      this.age = age;
    }
  }
});